home *** CD-ROM | disk | FTP | other *** search
-
-
-
- pbmreduce(1) USER COMMANDS pbmreduce(1)
-
-
-
- NAME
- pbmreduce - read a portable bitmap and reduce it N times
-
- SYNOPSIS
- pbmreduce [-floyd|-fs|-threshold [-value _✓v_✓a_✓l] _✓N [_✓p_✓b_✓m_✓f_✓i_✓l_✓e]
-
- DESCRIPTION
- Reads a portable bitmap as input. Reduces it by a factor of
- _✓N, and produces a portable bitmap as output.
-
- _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e duplicates a lot of the functionality of _✓p_✓g_✓m_✓t_✓o_✓p_✓b_✓m;
- you could do something like pnmscale | pgmtopbm, but
- _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e is a lot faster.
-
- _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e can be used to "re-halftone" an image. Let's say
- you have a scanner that only produces black&white, not
- grayscale, and it does a terrible job of halftoning (most
- b&w scanners fit this description). One way to fix the
- halftoning is to scan at the highest possible resolution,
- say 300 dpi, and then reduce by a factor of three or so
- using _✓p_✓b_✓m_✓r_✓e_✓d_✓u_✓c_✓e. You can even correct the brightness of an
- image, by using the -value flag.
-
- OPTIONS
- By default, the halftoning after the reduction is done via
- boustrophedonic Floyd-Steinberg error diffusion; however,
- the -threshold flag can be used to specify simple threshold-
- ing. This gives better results when reducing line drawings.
-
- The -value flag alters the thresholding value for all quant-
- izations. It should be a real number between 0 and 1.
- Above 0.5 means darker images; below 0.5 means lighter.
-
- All flags can be abbreviated to their shortest unique pre-
- fix.
-
- SEE ALSO
- pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)
-
- AUTHOR
- Copyright (C) 1988 by Jef Poskanzer.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sun Release 4.0 Last change: 02 August 1989 1
-
-
-
-